From: Jonas Dreßler Date: Thu, 21 Nov 2019 10:19:27 +0000 (+0700) Subject: st/icon: Use existing method for getting gicon property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~218 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9b673dc98bad10137e91b08bf83f5ff9e409feb6;p=gnome-shell.git st/icon: Use existing method for getting gicon property We have an existing method for this, let's use it instead of accessing the private property here. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/888 --- diff --git a/src/st/st-icon.c b/src/st/st-icon.c index 0f9aa43d2..4a92e9e5c 100644 --- a/src/st/st-icon.c +++ b/src/st/st-icon.c @@ -115,7 +115,7 @@ st_icon_get_property (GObject *gobject, switch (prop_id) { case PROP_GICON: - g_value_set_object (value, icon->priv->gicon); + g_value_set_object (value, st_icon_get_gicon (icon)); break; case PROP_ICON_NAME: